﻿using Dal;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bll
{
    public class TableBll
    {
        public DataTable GetData_Page_FldsOrder(Model_MakePages page, ref int RecordCount)
        {
            using (var db = new BabyfaceEntities())
            {
                var dal = new TableDal(db);
                var dataTable = dal.GetData_Page_FldsOrder(page, ref RecordCount);
                return dataTable;
            }
        }

        public PageTable GetData_Page_FldsOrder(Model_MakePages page)
        {
            using (var db = new BabyfaceEntities())
            {
                var dal = new TableDal(db);
                var pageTable = dal.GetData_Page_FldsOrder(page);
                return pageTable;
            }
        }
    }
}
